require 'open-uri'

def qym yumi
	url = 'http://52.la/ChaXun/Tools/Domain_Whois/?Url='+yumi
	open(url).readlines.each{|line|
		print('good ') if line =~/no matching/
		print('bad  ') if line =~/Domain Name/
	}
	puts yumi
end